From 237bc63847beb5d53e826e5a62f719c2bce48a30 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Thu, 13 Mar 2014 14:36:22 +0100 Subject: [PATCH] time: move wallclock_time() declaration into common code It is called from common code, but has architecture specific implementations. Have one declaration instead of two. No functional change. Signed-off-by: Andrew Cooper Acked-by: Ian Campbell Acked-by: Keir Fraser --- xen/include/asm-arm/time.h | 3 --- xen/include/asm-x86/time.h | 3 --- xen/include/xen/time.h | 1 + 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/xen/include/asm-arm/time.h b/xen/include/asm-arm/time.h index 9d302d34e8..d10c737f51 100644 --- a/xen/include/asm-arm/time.h +++ b/xen/include/asm-arm/time.h @@ -12,9 +12,6 @@ static inline cycles_t get_cycles (void) return 0; } -struct tm; -struct tm wallclock_time(void); - /* List of timer's IRQ */ enum timer_ppi { diff --git a/xen/include/asm-x86/time.h b/xen/include/asm-x86/time.h index 147b39ec23..c01b0a2785 100644 --- a/xen/include/asm-x86/time.h +++ b/xen/include/asm-x86/time.h @@ -48,9 +48,6 @@ int dom0_pit_access(struct ioreq *ioreq); int cpu_frequency_change(u64 freq); -struct tm; -struct tm wallclock_time(void); - void pit_broadcast_enter(void); void pit_broadcast_exit(void); int pit_broadcast_is_available(void); diff --git a/xen/include/xen/time.h b/xen/include/xen/time.h index 95b4b9177b..3eb5b63b5c 100644 --- a/xen/include/xen/time.h +++ b/xen/include/xen/time.h @@ -48,6 +48,7 @@ struct tm { int tm_isdst; /* daylight saving time */ }; struct tm gmtime(unsigned long t); +struct tm wallclock_time(void); #define SYSTEM_TIME_HZ 1000000000ULL #define NOW() ((s_time_t)get_s_time()) -- 2.30.2